home *** CD-ROM | disk | FTP | other *** search
- Path: hermes.dna.mci.com!usenet
- From: jmathew@mcimail.com (Jerry Mathew)
- Newsgroups: comp.lang.c++
- Subject: Under_Score problem with Borland C++ and Sybase Open Client.
- Date: Tue, 05 Mar 1996 10:28:50 -0800 (PST)
- Organization: MCI Telecommunications
- Message-ID: <4hhq6v$fcq@hermes.dna.mci.com>
- NNTP-Posting-Host: 166.41.113.133
- X-Newsreader: Forte Free Agent v0.38
-
- Hi,
-
- I am developing an application in Borland C++ Ver 4.5 to access Sybase
- SQL Server using the OpenClient library for Win 3.1 provided by
- Sybase.
-
- The problem I am having is that the compiler generates underscores for
- all function calls. That is a malloc becomes _malloc in the object
- module. This is okay because the Borland Standard lib has underscrores
- preceeding all function calls. This will not work with the OpenClient
- lib because a ct_connect becomes _ct_connect and the linker connect
- find a _ct_connect in the lib->dll .
-
- If I turn off underscores in the compiler options of the IDE then the
- linker complains about the standard C routines such as a printf or a
- malloc. So it is "all underscores or nothing".
-
- Any suggestions on how to get around this would be greatly
- appreciated.
-
- Thanks for having read this far.
-
- Jerry
-
- ------------------
-
-